package cn.ven.service;

import cn.ven.dao.SupportDao;
import cn.ven.entity.Support;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SupportServiceImpl implements SupportService{

    @Autowired
    SupportDao supportDao;


    @Override
    public void add(Support support) {
        supportDao.add(support);
    }

    @Override
    public List<Support> findSupport(String uid) {
        return supportDao.findSupport(uid);
    }

    @Override
    public Support findOneSupport(String uid, String blogid) {
        return supportDao.findOneSupport(uid,blogid);
    }

    @Override
    public void delSupport(String uid, String blogid) {
        supportDao.delSupport(uid,blogid);
    }

    @Override
    public List<Support> findSupportByBlogid(String blogid) {
        return supportDao.findSupportByBlogid(blogid);
    }

    @Override
    public void delSupportByBlogid(String blogid) {
        supportDao.delSupportByBlogid(blogid);
    }
}
